package com.ct.ah.lab.service;

import com.ct.ah.lab.entity.Cart;
import com.ct.ah.lab.entity.User;
import com.ct.ah.lab.entity.vo.CartVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ICartService {
    //添加商品到购物车
    public void save(Cart cart, User user);

    public List<CartVo> listCart(Integer uid);

    public List<CartVo> listCartByCids(List<Integer> cids);

    public Boolean changeNum(Integer cid, Integer num, User user);

    public void removeByCid(Integer cid);

    public void removeByCidList(List<Integer> cidList);

//    public Integer findCid(@Param("pid") Integer pid, @Param("uid") Integer uid);
    public Integer findCid(  Integer pid,   Integer uid);

}

